package com.odt.outdoor.widget.row;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;

/**
 * Created by DELL on 2017/2/14.
 */

public class MyScrollView extends ScrollView {
    public MyScrollView(Context context) {
        super(context);
    }

    public MyScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent e) {
//        return super.onInterceptTouchEvent(e);
        return true;
    }

    @Override
    public boolean onTouchEvent(MotionEvent e) {
//        getParent().requestDisallowInterceptTouchEvent(true);
        return super.onTouchEvent(e);
    }
}
